Optimal. Leaf size=33 \[ \frac {a \sqrt {-1+c x} \sqrt {1+c x}}{x}+\frac {b \cosh ^{-1}(c x)}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {465, 54}
\begin {gather*} \frac {a \sqrt {c x-1} \sqrt {c x+1}}{x}+\frac {b \cosh ^{-1}(c x)}{c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 54
Rule 465
Rubi steps
\begin {align*} \int \frac {a+b x^2}{x^2 \sqrt {-1+c x} \sqrt {1+c x}} \, dx &=\frac {a \sqrt {-1+c x} \sqrt {1+c x}}{x}+b \int \frac {1}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx\\ &=\frac {a \sqrt {-1+c x} \sqrt {1+c x}}{x}+\frac {b \cosh ^{-1}(c x)}{c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 48, normalized size = 1.45 \begin {gather*} \frac {a \sqrt {-1+c x} \sqrt {1+c x}}{x}+\frac {2 b \tanh ^{-1}\left (\sqrt {\frac {-1+c x}{1+c x}}\right )}{c} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.29, size = 77, normalized size = 2.33
method | result | size |
default | \(\frac {\sqrt {c x -1}\, \sqrt {c x +1}\, \left (\sqrt {c^{2} x^{2}-1}\, \mathrm {csgn}\left (c \right ) c a +\ln \left (\left (\sqrt {c^{2} x^{2}-1}\, \mathrm {csgn}\left (c \right )+c x \right ) \mathrm {csgn}\left (c \right )\right ) b x \right ) \mathrm {csgn}\left (c \right )}{\sqrt {c^{2} x^{2}-1}\, c x}\) | \(77\) |
risch | \(\frac {a \sqrt {c x -1}\, \sqrt {c x +1}}{x}+\frac {b \ln \left (\frac {c^{2} x}{\sqrt {c^{2}}}+\sqrt {c^{2} x^{2}-1}\right ) \sqrt {\left (c x +1\right ) \left (c x -1\right )}}{\sqrt {c^{2}}\, \sqrt {c x -1}\, \sqrt {c x +1}}\) | \(78\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 44, normalized size = 1.33 \begin {gather*} \frac {b \log \left (2 \, c^{2} x + 2 \, \sqrt {c^{2} x^{2} - 1} c\right )}{c} + \frac {\sqrt {c^{2} x^{2} - 1} a}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.32, size = 56, normalized size = 1.70 \begin {gather*} \frac {a c^{2} x + \sqrt {c x + 1} \sqrt {c x - 1} a c - b x \log \left (-c x + \sqrt {c x + 1} \sqrt {c x - 1}\right )}{c x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 38.91, size = 148, normalized size = 4.48 \begin {gather*} - \frac {a c {G_{6, 6}^{5, 3}\left (\begin {matrix} \frac {5}{4}, \frac {7}{4}, 1 & \frac {3}{2}, \frac {3}{2}, 2 \\1, \frac {5}{4}, \frac {3}{2}, \frac {7}{4}, 2 & 0 \end {matrix} \middle | {\frac {1}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}}} - \frac {i a c {G_{6, 6}^{2, 6}\left (\begin {matrix} \frac {1}{2}, \frac {3}{4}, 1, \frac {5}{4}, \frac {3}{2}, 1 & \\\frac {3}{4}, \frac {5}{4} & \frac {1}{2}, 1, 1, 0 \end {matrix} \middle | {\frac {e^{2 i \pi }}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}}} + \frac {b {G_{6, 6}^{6, 2}\left (\begin {matrix} \frac {1}{4}, \frac {3}{4} & \frac {1}{2}, \frac {1}{2}, 1, 1 \\0, \frac {1}{4}, \frac {1}{2}, \frac {3}{4}, 1, 0 & \end {matrix} \middle | {\frac {1}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}} c} - \frac {i b {G_{6, 6}^{2, 6}\left (\begin {matrix} - \frac {1}{2}, - \frac {1}{4}, 0, \frac {1}{4}, \frac {1}{2}, 1 & \\- \frac {1}{4}, \frac {1}{4} & - \frac {1}{2}, 0, 0, 0 \end {matrix} \middle | {\frac {e^{2 i \pi }}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}} c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.68, size = 58, normalized size = 1.76 \begin {gather*} \frac {\frac {16 \, a c^{2}}{{\left (\sqrt {c x + 1} - \sqrt {c x - 1}\right )}^{4} + 4} - b \log \left ({\left (\sqrt {c x + 1} - \sqrt {c x - 1}\right )}^{4}\right )}{2 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.59, size = 61, normalized size = 1.85 \begin {gather*} \frac {a\,\sqrt {c\,x-1}\,\sqrt {c\,x+1}}{x}-\frac {4\,b\,\mathrm {atan}\left (\frac {c\,\left (\sqrt {c\,x-1}-\mathrm {i}\right )}{\left (\sqrt {c\,x+1}-1\right )\,\sqrt {-c^2}}\right )}{\sqrt {-c^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________